<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/12/7
  Time: 11:56
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<div class="table-scroll">
    <!--tabel 列表-->
    <table class="table public-table PoInput">
        <thead>
        <tr>
            <td>选择</td>
            <td>客户编号</td>
            <td>客户姓名</td>
            <td>居住地址</td>
            <td>借款次数</td>
            <td>逾期次数</td>
            <td>坏账单数</td>
            <td>业务员</td>
            <td>关注</td>
            <td>创建时间<span><i class="iconfont icon-upDown" style="font-size: 14px; margin-left: 10px;"></i></span></td>
            <td>操作</td>
        </tr>
        </thead>
        <tbody id="personalPublicList"></tbody>
        <script type="text/x-handlebars-template" id="personalPublicList_tpl">
            {{#if content.content.list}}
            {{#each content.content.list}}

            <tr ng-repeat="i in data1.content.list" ng-click="F.tabClick($event)"
                class="table-tr-hover ">
                <td><input type="checkbox" name="ch_id" value="{{personalId}}"></td>
                <td class="">{{personalNum}}</td>
                <td class="">{{unionName}}</td>

                <td class="">{{name1}}{{name2}}{{name3}}{{address}}</td>
                <td class="">{{ordersum}}</td>
                <td>{{overdueSum}}</td>

                <td class="">{{badSum}}</td>


                <td class="">{{salesman}}</td>

                <td>
                    <span>
                        <i class="focus iconfont {{#IF_EQ isfollow 1}}icon-aixin{{else}}icon-aixin1{{/IF_EQ}}" data-isfollow="{{isfollow}}" data-pid="{{pid}}" style="font-size: 24px; color:#333333"></i>
                    </span>
                </td>
                <%--2018-04-10 16:31:51--%>
                <td class="">{{createTime}}</td>
                <td>


                    <div class="se-re sel-blue">
                        <select data-personalid="{{pid}}" data-payee="{{unionName}}"
                                class="tabHint client974 ng-not-empty custlistSelect" data-adminid="{{adminId}}" data-label_id="{{label_id}}"
                                ng-model="selectType.default" ng-change="F.selectQuery('client974')">
                            <option value="-1" selected="selected">选择操作</option>
                            {{#each ../fourthMenus}}
                            <option value="{{key}}" {{#IF_EQ key 'addPerson'}}style="display:none"{{/IF_EQ}}
                            {{#IF_EQ key 'coverUsual'}}{{#IF_EQ ../../locked 1}}style="display:none"{{/IF_EQ}}{{/IF_EQ}}
                            {{#IF_EQ key 'lockPerson'}}{{#IF_EQ ../../locked 2}}style="display:none"{{/IF_EQ}}{{/IF_EQ}}>{{name}}</option>
                            <%--<!-- ngIf: HbHr.hr181 && _routeId!=2 -->
                            <option ng-if="HbHr.hr181 &amp;&amp; _routeId!=2" value="1" path="client"
                                    params="editClient" data-type="1"
                                    param="id:974,path:client,params:clientList"
                                    data-id="{{personalId}}"
                                    class="">编辑客户
                            </option><!-- end ngIf: HbHr.hr181 && _routeId!=2 -->
                            <!-- ngIf: HbHr.hr181 && i.role_id==_routeId && _routeId==2 -->

                            <!-- ngIf: HbHr.hr182 -->
                            <option ng-if="HbHr.hr182" value="2" data-type="2" data-id="{{personalId}}"
                                    data-payee="{{unionName}}" class="">拉黑名单
                            </option>
                            <!-- end ngIf: HbHr.hr182 -->
                            <!-- ngIf: HbHr.hr308 -->
                            <option ng-if="HbHr.hr308" value="3" data-type="2" data-roleid="{{role_id}}"
                                    data-admin_id="{{adminId}}" data-id="{{personalId}}" class="">
                                更换业务员
                            </option>
                            <!-- end ngIf: HbHr.hr308 -->
                            <!-- ngIf: HbHr.hr309 -->
                            <option ng-if="HbHr.hr309" value="4" data-personalnum="{{personalNum}}"
                                    data-type="2" class="">查看关联订单
                            </option>
                            <!-- end ngIf: HbHr.hr309 -->
                            <!-- ngIf: HbHr.hr309 -->
                            <option ng-if="HbHr.hr309" value="5" data-type="2" class=""
                                    data-id="{{personalId}}">客户通讯录
                            </option><!-- end ngIf: HbHr.hr309 -->
                            <option value="6" data-id="{{personalId}}" data-label_id="{{label_id}}">设置标签</option>
                            <option value="7" data-id="{{personalId}}" data-homephone="{{homephone}}"
                                    data-payee="{{unionName}}">客户位置
                            </option>
                            <option value="8" data-id="{{personalId}}">跟踪日志</option>--%>
                            {{/each}}
                        </select>

                        <span class="se-po-blue"></span>

                    </div>


                    <button id="{{personalId}}" class="tabHint btnQuery974 operations_record"
                            data-id="{{personalId}}"
                            ng-click="F.btnQuery('btnQuery'+i.personalId); $event.stopPropagation()"
                            path="loanBefore" params="record" param="Table:t_personal,tableId:974"
                            ng-if="HbHr.hr235">
                        操作记录
                    </button><!-- end ngIf: HbHr.hr235 -->
                </td>
            </tr>
            {{/each}}

            {{else}}
            <tr>
                <td style="position: relative;
    left: 50%;
transform: translateX(-50%);
border: none;
">暂无数据
                </td>

            </tr>
            {{/if}}
        </script>
        <tfoot class="public-botPage">
        <tr>
            <td>
                <!-- 全选反选  -->
                <input id="checkAllOrNot" type="checkbox" ng-click="F.ch_id_all($event,'ch_id')">
            </td>
            <td colspan="18">
                <div class="public-botPage-left">
              <span>
                <span>全选</span>
              </span>
                    <div class="se-re">
                        <select class="supportc ng-pristine ng-untouched ng-valid ng-not-empty all_block_list"
                                ng-model="selectType.default" ng-change="F.selectQuery('supportc','ch_id')">
                            <option value="-1" selected="selected">批量操作</option>
                            <option ng-if="HbHr.hr182" value="1" path="client" params="beBlack"
                                    class="">拉黑名单
                            </option><!-- end ngIf: HbHr.hr182 -->
                        </select>
                        <span class="se-po"></span>
                    </div>
                    <script type="text/x-handlebars-template" id="special_fourth_tpl">
                        {{#each .}}
                        {{#IF_EQ key 'addPerson'}}
                        <button class="tabHint addCustomerBtn">
                            录入客户
                        </button>
                        {{/IF_EQ}}
                        {{/each}}
                    </script>
                </div>
                <div class="page-container all-page-container"
                     style="float: right; padding: 15px 0;"></div>
            </td>
        </tr>
        </tfoot>
    </table>
</div>
